const fs = require('fs')
const path = require('path')

console.log(__dirname)  //  C:\Users\Administrator\Desktop\ajax_060\node\day02
console.log(__filename)  //  C:\Users\Administrator\Desktop\ajax_060\node\day02\back.js

// fs.writeFile(__dirname+'/file/1.txt','hello  world22222',(err)=>{
// console.log(err)
// })
fs.writeFile(path.join(__dirname,'/file/1.txt'),'hello  333333',(err)=>{
console.log(err)
})